package com.ruoyi.common.pojo;



import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by stephen.zhang on 15/8/13.
 */
public class AfareCreatePnrResponse implements Serializable {
    private static final long serialVersionUID = 5495566733171770565L;
    /**
     * 接口版本
     */
    private String version;

    /**
     * 订单id(md5加密)
     */
    private String key;

    /**
     * 成人pnr
     */
    private String adlPnr;

    /**
     * 儿童pnr
     */
    private String chPnr;

    private Map<String, String> extData;

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getAdlPnr() {
        return adlPnr;
    }

    public void setAdlPnr(String adlPnr) {
        this.adlPnr = adlPnr;
    }

    public String getChPnr() {
        return chPnr;
    }

    public void setChPnr(String chPnr) {
        this.chPnr = chPnr;
    }

    public Map<String, String> getExtData() {
        return extData;
    }

    public void addExtData(String key, String value) {
        if (extData == null) {
            extData = new HashMap<>();
        }
        extData.put(key, value);
    }

    @Override
    public String toString() {
        return "AfareCreatePnrResponse{" +
                "version='" + version + '\'' +
                ", key='" + key + '\'' +
                ", adlPnr='" + adlPnr + '\'' +
                ", chPnr='" + chPnr + '\'' +
                ", extData=" + extData +
                '}';
    }
}
